package com.fjh.roadmannage.ui

import com.cxz.kotlin.baselibs.base.BaseMvpActivity
import com.cxz.kotlin.baselibs.ext.rxClickSimple
import com.fjh.roadmannage.databinding.ActivityLoginBinding

class LoginActivity :
    BaseMvpActivity<ActivityLoginBinding, LoginContract.LoginView, LoginContract.LoginPresenter>() {
    var a = 1;
    override fun setListeners() {
//        binding.dianyixia.rxClick(2, { Toast.makeText(this, "", Toast.LENGTH_SHORT).show() }, null)
        binding.dianyixia.rxClickSimple {
            a++
            binding.num.text = a.toString();
        }

    }

    override fun start() {
    }

    override fun createPresenter(): LoginContract.LoginPresenter {
        return LoginContract.LoginPresenter()
    }
}